import baseUrl from './base-url-config'

const { product: prefix } = baseUrl

export default {
  // 查询eCRF设计列表
  qryDesignList: {
    url: `${prefix}/edc/builder/database/crf/crf/getListAll`,
    method: 'get',
  },

  // 查询eCRF设计列表
  qryDesignListNoLoading: {
    url: `${prefix}/edc/builder/database/crf/crf/getListAll`,
    method: 'get',
    hasLoading: false,
  },

  // 创建CRF表单
  addCrfDesign: {
    url: `${prefix}/edc/builder/database/crf/crf/save`,
    method: 'post',
  },

  // 复制eCRFs操作
  copyECRFsAPI: {
    url: `${prefix}/edc/builder/database/crf/crf/copyCrfFrom`,
    method: 'post',
  },

  // 创建CRF表单
  editCrfDesign: {
    url: `${prefix}/edc/builder/database/crf/crf/updateDatabaseCrf`,
    method: 'put',
  },

  // 修改状态
  editCrfDesignStatus: {
    url: `${prefix}/edc/builder/database/crf/crf/updateOperation`,
    method: 'put',
  },

  // 修改状态
  deleteCrfDesignStatus: {
    url: `${prefix}/edc/builder/database/crf/crf/delect`,
    method: 'delete',
  },

  // 交换位置排序
  sortCrfDesignList: {
    url: `${prefix}/edc/builder/database/crf/crf/updateNumChange`,
    method: 'put',
  },

  // 新增ecrf设计--插叙分类列表
  qryClassifyList: {
    url: `${prefix}/edc/builder/database/crf/crf/getListClassify`,
    method: 'get',
  },

  // 查询变量配置列表
  qryVariableConfigList: {
    url: `${prefix}/edc/builder/database/crf/field/getCrfField`,
    method: 'get',
  },

  // 查询变量配置列表
  qryVariableConfigListNoLoading: {
    url: `${prefix}/edc/builder/database/crf/field/getCrfField`,
    method: 'get',
    hasLoading: false,
  },

  // 新增变量配置
  addVariableConfig: {
    url: `${prefix}/edc/builder/database/crf/field/sava`,
    method: 'post',
  },

  // 新增变量配置
  editVariableConfig: {
    url: `${prefix}/edc/builder/database/crf/field/update`,
    method: 'put',
  },

  // 删除变量配置
  deleteVariableConfig: {
    url: `${prefix}/edc/builder/database/crf/field/delete`,
    method: 'delete',
  },

  // 变量配置排序
  sortVariableConfig: {
    url: `${prefix}/edc/builder/database/crf/field/sortNumChange`,
    method: 'put',
  },

  // 变量配置--修改状态
  updateVariableConfigStatus: {
    url: `${prefix}/edc/builder/database/crf/field/updateOperation`,
    method: 'put',
  },

  // 查询界面设计列表
  qryInterfaceDesignList: {
    url: `${prefix}/edc/builder/database/crf/boundary/getListAll`,
    method: 'get',
  },

  // 查询界面设计列表
  qryChildEmbeddedTable: {
    url: `${prefix}/edc/builder/database/crf/crf/getSontEmbedded`,
    method: 'get',
    hasLoading: false,
  },

  // 新增界面设计
  addInterfaceDesign: {
    url: `${prefix}/edc/builder/database/crf/boundary/sava`,
    method: 'post',
  },

  // 编辑界面设计
  editInterfaceDesign: {
    url: `${prefix}/edc/builder/database/crf/boundary/update`,
    method: 'put',
  },

  // 删除界面设计
  deleteInterfaceDesign: {
    url: `${prefix}/edc/builder/database/crf/boundary/delete`,
    method: 'delete',
  },

  // 删除界面设计
  sortInterfaceDesign: {
    url: `${prefix}/edc/builder/database/crf/boundary/sortNumChange`,
    method: 'put',
  },

  // 界面设计--恢复默认
  restoreInterfaceDesign: {
    url: `${prefix}/edc/builder/database/crf/boundary/resume`,
    method: 'put',
  },

  // 实验室检查值--列表
  qryLaboratoryMappingList: {
    url: `${prefix}/edc/builder/database/labNormalMap/getAll`,
    method: 'get',
  },

  // 实验室检查值--新增
  addLaboratoryMappingList: {
    url: `${prefix}/edc/builder/database/labNormalMap/sava`,
    method: 'post',
  },

  // 实验室检查值--修改
  editLaboratoryMappingList: {
    url: `${prefix}/edc/builder/database/labNormalMap/update`,
    method: 'put',
  },

  // 实验室检查值--删除
  deleteLaboratoryMappingList: {
    url: `${prefix}/edc/builder/database/labNormalMap/delete`,
    method: 'delete',
  },

  // 编码字典--一般编码列表查询
  qryGeneralCodingList: {
    url: `${prefix}/edc/builder/database/crf/code/getPage`,
    method: 'get',
    hasLoading: true,
  },

  // 编码字典--一般编码列表--新增
  addGeneralCoding: {
    url: `${prefix}/edc/builder/database/crf/code/sava`,
    method: 'post',
  },
  // 编码字典--一般编码列表--编辑
  editGeneralCoding: {
    url: `${prefix}/edc/builder/database/crf/code/update`,
    method: 'put',
  },
  // 编码字典--一般编码列表--删除
  deleteGeneralCoding: {
    url: `${prefix}/edc/builder/database/crf/code/delete`,
    method: 'delete',
  },

  // 编码字典--一般编码列表--获得编码组中文列表
  qryCodingGroupList: {
    url: `${prefix}/edc/builder/database/crf/code/getCodeGroupCn`,
    method: 'get',
  },

  // 编码字典--一般编码列表--获得编码名称中文列表
  qryCodingNameList: {
    url: `${prefix}/edc/builder/database/crf/code/getCodeNameCn`,
    method: 'get',
  },

  // 编码字典--一般编码列表--批量删除
  batchDeleteAPI: {
    url: `${prefix}/edc/builder/database/crf/code/batchDelete`,
    method: 'POST',
  },
  // 编码字典--一般编码列表--批量失效
  batchInEffective: {
    url: `${prefix}/edc/builder/database/crf/code/batchInEffective`,
    method: 'POST',
  },
  // 编码字典--一般编码列表--修改排序
  updateSortAPI: {
    url: `${prefix}/edc/builder/database/crf/code/updateSort`,
    method: 'PUT',
  },

  // 编码字典--内嵌编码列表--获得编码名称中文列表
  qryEmbeddedCodingList: {
    url: `${prefix}/edc/builder/database/crf/inline/code/getCodePage`,
    method: 'get',
    hasLoading: true,
  },

  // 内嵌表编码--新增
  addEmbeddedCoding: {
    url: `${prefix}/edc/builder/database/crf/inline/code/sava`,
    method: 'post',
  },

  // 内嵌表编码--编辑
  editEmbeddedCoding: {
    url: `${prefix}/edc/builder/database/crf/inline/code/update`,
    method: 'put',
  },

  // 内嵌表编码--删除
  deleteEmbeddedCoding: {
    url: `${prefix}/edc/builder/database/crf/inline/code/delete`,
    method: 'delete',
  },

  // 内嵌表编码--获得编码名中文列表
  qryEmbeddedCodingNameList: {
    url: `${prefix}/edc/builder/database/crf/inline/code/getInlineCodeNameCn`,
    method: 'get',
  },

  // 内嵌表编码--获得编码名中文列表
  qryEmbeddedCodingGroupList: {
    url: `${prefix}/edc/builder/database/crf/inline/code/getInlineCodeGroupCn`,
    method: 'get',
  },

  // 内嵌表编码--批量删除
  batchDeleteEmbeddedAPI: {
    url: `${prefix}/edc/builder/database/crf/inline/code/batchDelete`,
    method: 'POST',
  },
  // 内嵌表编码--批量失效
  batchInEffectiveEmbeddedAPI: {
    url: `${prefix}/edc/builder/database/crf/inline/code/batchInEffective`,
    method: 'POST',
  },
  // 内嵌表编码--修改排序
  updateSortEmbeddedAPI: {
    url: `${prefix}/edc/builder/database/crf/inline/code/updateSort`,
    method: 'PUT',
  },

  // 自动取值--列表
  qryAutomaticValueList: {
    url: `${prefix}/edc/builder/database/crf/voluntarily/getAllVoluntarily`,
    method: 'get',
    hasLoading: true,
  },

  // 核查类型配置表--查询
  qryCheckTypeConfigList: {
    url: `${prefix}/edc/system/config/getListAll`,
    method: 'get',
    hasLoading: true,
  },

  // 核查类型配置表--编辑
  editCheckTypeConfig: {
    url: `${prefix}/edc/system/config/update`,
    method: 'put',
  },

  // 变量配置界面--获取全部编码组分类
  qryAllGeneralCodeList: {
    url: `${prefix}/edc/builder/database/crf/code/getAll`,
    method: 'get',
    hasLoading: false,
  },

  // 核查设置列表查询
  qryCheckSettingList: {
    url: `${prefix}/edc/builder/database/crf/checksetup/listFieldChecksetup`,
    method: 'get',
  },

  // 核查设置列表保存
  saveCheckSettingList: {
    url: `${prefix}/edc/builder/database/crf/checksetup/updateAll`,
    method: 'put',
  },

  // 根据编码名称获取编码值
  qryCodeValueByCodeName: {
    url: `${prefix}/edc/builder/database/crf/code/getByCodeName`,
    method: 'get',
  },

  qryCodeValueByCodeNameNoLoading: {
    url: `${prefix}/edc/builder/database/crf/code/getByCodeName`,
    method: 'get',
    hasLoading: false,
  },

  // 根据编码名称获取编码值
  saveRowControlData: {
    url: `${prefix}/edc/builder/database/crf/query_preconditions/updeteQueryPreconditions`,
    method: 'put',
  },

  // 查询源表所在访视列表--下拉框
  qrySourceTableInterviewList: {
    url: `${prefix}/edc/builder/project/visit/nowConfigVisit`,
    method: 'get',
    hasLoading: false,
  },

  // 根据访视ID查询源表
  qrySourceTableList: {
    url: `${prefix}/edc/builder/project/visit/table/visitTableList`,
    method: 'get',
    hasLoading: false,
  },

  // 查询功能参数详情
  qryFunctionParamsData: {
    url: `${prefix}/edc/system/function/params/functionParams`,
    method: 'get',
  },

  // 保存功能参数
  addFunctionParamsData: {
    url: `${prefix}/edc/system/function/params/add`,
    method: 'post',
  },

  // 保存功能参数
  editFunctionParamsData: {
    url: `${prefix}/edc/system/function/params/update`,
    method: 'put',
  },

  // 查询受试者参数详情
  qrySubjectParamsData: {
    url: `${prefix}/edc/system/subject/params/functionParams`,
    method: 'get',
  },

  // 新增受试者参数
  addSubjectParamsData: {
    url: `${prefix}/edc/system/subject/params/add`,
    method: 'post',
  },

  // 编辑受试者参数
  editSubjectParamsData: {
    url: `${prefix}/edc/system/subject/params/edit`,
    method: 'put',
  },

  // 编辑受试者参数
  qryEmbeddedTableData: {
    url: `${prefix}/edc/builder/database/crf/inline/boundary/getInlineBoundary`,
    method: 'get',
  },

  // 查询内嵌表编码组
  qryEmbeddedTableCodeGroupList: {
    url: `${prefix}/edc/builder/database/crf/inline/code/getInlineCodeAll`,
    method: 'get',
  },

  // 界面预览
  qryInterfaceVariablesPreviewList: {
    url: `${prefix}/edc/builder/database/crf/boundary/crfPreview`,
    method: 'get',
  },

  // 界面预览
  editEmbeddedTableCodeGroupList: {
    url: `${prefix}/edc/builder/database/crf/inline/boundary/update`,
    method: 'put',
  },

  // 设置行控制接口
  setInterfaceRowControl: {
    url: `${prefix}/edc/builder/database/crf/boundary/updateRow`,
    method: 'put',
  },

  // 下载一般编码导入字典
  exportGeneralEncodingTemplate: {
    url: `${prefix}/edc/builder/database/crf/code/downloadTemplate`,
    method: 'get',
    responseType: 'blob',
  },

  // 导出一般编码数据
  exportGeneralEncodingData: {
    url: `${prefix}/edc/builder/database/crf/code/export`,
    method: 'post',
    responseType: 'blob',
  },

  // 导入一般编码列表
  importGeneralEncodingData: {
    url: `${prefix}/edc/builder/database/crf/code/importCode`,
    method: 'post',
    contentType: 'multipart/form-data',
  },

  // 下载内嵌编码导入字典
  exportEmbeddedEncodingTemplate: {
    url: `${prefix}/edc/builder/database/crf/inline/code/downloadTemplate`,
    method: 'get',
    responseType: 'blob',
  },

  // 导出内嵌编码数据
  exportEmbeddedEncodingData: {
    url: `${prefix}/edc/builder/database/crf/inline/code/export`,
    method: 'post',
    responseType: 'blob',
  },

  // 导入内嵌编码列表
  importEmbeddedEncodingData: {
    url: `${prefix}/edc/builder/database/crf/inline/code/importCode`,
    method: 'post',
    contentType: 'multipart/form-data',
  },

  // 💭自动取直
  // 添加自动取值
  addAutomatiValue: {
    url: `${prefix}/edc/builder/database/crf/voluntarily/sava`,
    method: 'post',
  },
  // 获取自动取值
  getAutomatiValue: {
    url: `${prefix}/edc/builder/database/crf/voluntarily/getAllVoluntarily`,
    method: 'get',
    hasLoading: false,
  },
  // 删除自动取值
  deleteAutomatiValue: {
    url: `${prefix}/edc/builder/database/crf/voluntarily/delete`,
    method: 'delete',
  },
}
